import request from '@/utils/request'

// 查询customerclass列表
export function listCustomerclass(query) {
  return request({
    url: '/customerclass/customerclass/list',
    method: 'get',
    params: query
  })
}

// 查询customerclass详细
export function getCustomerclass(cCCCode) {
  return request({
    url: '/customerclass/customerclass/' + cCCCode,
    method: 'get'
  })
}

// 新增customerclass
export function addCustomerclass(data) {
  return request({
    url: '/customerclass/customerclass',
    method: 'post',
    data: data
  })
}

// 修改customerclass
export function updateCustomerclass(data) {
  return request({
    url: '/customerclass/customerclass',
    method: 'put',
    data: data
  })
}

// 删除customerclass
export function delCustomerclass(cCCCode) {
  return request({
    url: '/customerclass/customerclass/' + cCCCode,
    method: 'delete'
  })
}
